<template>
	<view>
		<web-view :src="targetUrl"></web-view>
	</view>
</template>

<script setup>
	import {
		ref
	} from "vue";

	import {
		onLoad
	} from '@dcloudio/uni-app';

	const targetUrl = ref("");

	onLoad((options) => {
		if (options.targetUrl) {
			targetUrl.value = decodeURIComponent(options.targetUrl);
			// console.log("接收的参数：", options);
			// console.log("要加载的网址：", targetUrl.value);
		}
	});
</script>

<style lang="scss" scoped></style>